package com.lancoo.answer.view.adapter

import android.view.View
import com.chad.library.adapter.base.BaseNodeAdapter
import com.chad.library.adapter.base.entity.node.BaseNode
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.lancoo.answer.R
import com.lancoo.answer.databinding.EvItemSentenceSubBinding
import com.lancoo.answer.databinding.EvItemSentenceTitleBinding
import com.lancoo.answer.model.bean.Comment
import com.lancoo.answer.model.bean.Sentence
import com.lancoo.answer.util.HtmlUtils

/**
 * Created by wealive on 2022/7/21.
 *
 *
 */
class SentenceListNodeAdapter(data: MutableList<BaseNode>) : BaseNodeAdapter() {
    init {
        addFullSpanNodeProvider(SentenceListProvider())
        addNodeProvider(SentenceProvider())
    }

    override fun getItemType(data: List<BaseNode>, position: Int): Int {
//        val node = data[position]
//        if (node is Sentence) {
//            return 0
//        } else if (node is Comment) {
//            return 1
//        }
        return -1
    }
}